package fit.deni.hibernate.interfaces;

import java.util.Collection;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import fit.deni.beans.Zaposleni;

public interface ZaposleniService {

	public abstract Zaposleni getUserByUsername(String username);
	
	public Collection<Zaposleni> getAdminitrators();

	@CommitAfter
	public abstract void addUser(Zaposleni korisnik);

	@CommitAfter
	public abstract void deleteUser(Zaposleni korisnik);

}